package com.pipe.servicepipe.service;

import org.springframework.security.core.userdetails.UserDetails;

/**
 * @InterfaceName PipeAdminService
 * @Author HETAO
 * @Date 2020/7/19 17:08
 */
public interface PipeAdminService {
    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    String login(String username,String password) throws Exception;

    /**
     * 获取用户信息
     */
    UserDetails loadUserByUsername(String username);

    /**
     * 发送验证码
     * @param phone
     */
    void loginBySms(String phone);

    /**
     * 手机号登录
     * @param phone
     * @param number
     * @return
     */
    String loginByPhone(String phone, String number);

}
